package com.gy.hsim.bservice.message.bean;

import org.springframework.format.annotation.DateTimeFormat;


/**
 * 消息实体
 * @author quanrj
 * @date 2016-02-01 上午11:57:36
 */
public class MessageSetting{
	
	/**
	 * 流水id
	 */
	private Integer Id;
	
	/**
	 * 用户资源号
	 */
	private String userID;
	
	/**
	 * 选择项101.接收新消息通知  102.显示消息详情  103.声音  104.震动  201.通过手机号搜索到我  202.加我为好友时需要验证
	 */
	private String settings;
	
	/**
	 * 最新设置时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private String upDated;

	public Integer getId() {
		return Id;
	}

	public void setId(Integer id) {
		Id = id;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}
	
	public String getSettings() {
		return settings;
	}

	public void setSettings(String settings) {
		this.settings = settings;
	}

	public String getUpDated() {
		return upDated;
	}

	public void setUpDated(String upDated) {
		this.upDated = upDated.substring(0,upDated.lastIndexOf("."));
	}
			
}
